﻿using Microsoft.Extensions.DependencyInjection;

namespace WebViewCore.Ioc;

public class WebViewLocator
{
    private static readonly ServiceCollection _services;
    private static ServiceProvider? _provider;


    static WebViewLocator()
    {
        _services = new ServiceCollection();
    }

    public static void ConfigureServices()
    {
        ServiceProvider provider = _services.BuildServiceProvider();
        _provider = provider;
    }


    public static ServiceCollection s_Registrator => _services;
    public static ServiceProvider s_ResolverContext => _provider!;
}